package com.practice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Data;
import org.hibernate.annotations.Comment;

@TableName(value = "jiojio_user")
@Data
@Entity
@Table(name = "jiojio_user")
@Comment("用户信息表")
public class UserDO extends BaseDO{

    /**
     * 登录账户
     */
    @Column(name = "login_name")
    @Comment("登录账户")
    private String loginName;

    /**
     * 登录密码
     */
    @Column(name = "login_password")
    @Comment("登录密码")
    private String loginPassword;

    /**
     * 头像
     */
    @Column(name = "icon")
    @Comment("头像")
    private String icon;

    /**
     * 昵称
     */
    @Column(name = "user_name")
    @Comment("昵称")
    private String userName;

    /**
     * 手机号
     */
    @Column(name = "phone")
    @Comment("手机号")
    private String phone;

    /**
     * 邮箱
     */
    @Column(name = "email")
    @Comment("邮箱")
    private String email;

    /**
     * 用户类型
     */
    @Column(name = "user_type")
    @Comment("用户类型")
    private String userType;
}
